﻿using System.ComponentModel.DataAnnotations;

namespace ETask.Api.Dtos
{
    public class LoginRequest
    {
        [Required(ErrorMessage = "用户名不能为空")]
        public string Account { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }
    }

    public class LoginResponse
    {
        public string Token { get; set; }
        public DateTime ExpiryTime { get; set; }
    }
}
